package com.jrh.domain.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户
 * 
 * @author mmy 2012-7-18 上午2:45:03
 */
public class User implements Serializable {

    /** 本站用户 */
    public static final String JRH_SELF_USER_SITE   = "jrh";

    /** 淘宝用户 */
    public static final String JRH_TAOBAO_USER_SITE = "tb";

    /** QQ用户 */
    public static final String JRH_QQ_USER_SITE     = "qq";

    /** 微博用户 */
    public static final String JRH_WEIBO_USER_SITE  = "wb";

    /** 买家 */
    public static final String USER_TYPE_BUYER      = "0";

    /** 卖家 */
    public static final String USER_TYPE_SELLER     = "1";

    private static final long  serialVersionUID     = 1747394091773335059L;

    private Long               id;
    private String             loginId;
    private String             nickname;
    private String             password;
    private String             site;
    private String             userType;
    private Date               gmtModified;
    private String             faceUrl;
    private String             lastLoginTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }


    public String getFaceUrl() {
        return faceUrl;
    }

    public void setFaceUrl(String faceUrl) {
        this.faceUrl = faceUrl;
    }


    public String getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(String lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    @Override
    public String toString() {
        return "User [id=" + id + ", loginId=" + loginId + ", nickname=" + nickname + ", password=" + password
               + ", site=" + site + ", userType=" + userType + ", gmtModified=" + gmtModified + ", lastLoginTime="
               + lastLoginTime + "]";
    }

}
